<?php
ob_start();
header("Content-type: application/javascript; charset=UTF-8"); 

if ('127.0.0.1' == $_SERVER['REMOTE_ADDR'])
//if (true)
{
	include 'config.js';
	echo "\n";

	chdir('./locales/zh_CN/');
	include 'lang.php';
	echo "\n";

	chdir('../../models');
	include 'js.php';
	echo "\n";

	chdir('../controllers/');
	include 'js.php';


    $out_str = ob_get_contents();

    ob_end_clean();

    echo $out_str;
	chdir('../');
    file_put_contents('js.js', $out_str);
}
else
{
	include 'script.js';
	echo "\n";
}


?>